package demo01;

/**
 * @author Gotcha
 * @date 2021/6/15
 * @describe
 */
//定义适配器类（SD兼容TF）
public class SDAdapterTF extends TFCardImpl implements SDCard {

    @Override
    public String readSD() {
        System.out.println("读取操作，本来是要读取SD卡，适配器将TF卡转换为SD卡");
        return readTF();
    }

    @Override
    public void writeSD(String msg) {
        System.out.println("写入操作，本来是要写入SD卡，适配器将TF卡转换为SD卡");
        writeTF(msg);
    }
}
